<?php

namespace App\Http\Requests\Admin\NewsCategory;
use App\Http\Requests\Request;

class NewsClass extends Request{
    public function authorize(){
        return true;
    }
    public function rules(){
        $input = $this->all();
        return [
            'defectsname'=>'required|max:50',
            'new_sign'=>'required',
        ];
    }
    public function messages(){
        return [
            'defectsname.required'=>'分类名称不能为空',
            'defectsname.max'=>'最多50个字',
            'new_sign.required'=>'分类标识不能为空',
        ];
    }
}
